<?php require VIEW_ROOT.'/link/index.php'?>

<style>
#item_info { background:#ffffc4; border:#caca00 1px solid; position:absolute; top:100px; left:200px; display:none; padding:5px; font-size:12px; line-height:15px; }
.item_on { color:#fff; background:#f00; }
</style>

<script type="text/javascript" src="./resource/images/liteui/jquery.min.js"></script>

<script>
// 点击数据
var res_hits = <?php echo json_encode($res_hits)?>;
var point = 0;

// 程序入口
$(function() {
	play();
});

// 演示
function play() {
	var item_obj = $('a[itemid=' + res_hits[point].link_item_id + ']');
	
	var offset = item_obj.offset();
	var left = offset.left;
	var top = offset.top + 17;
	
	var item_info_obj = $('#item_info');
	item_info_obj.css({'left' : left, 'top' : top});
	item_info_obj.html(item_obj.html() + ' - ' + res_hits[point].create_time);
	item_info_obj.show();
	
	// 继续
	point++;
	point < res_hits.length && setTimeout('play()', 1000);
}
</script>

<div id="item_info"></div>